SRCS = \
	socket01.c sttps.c sttpc.c udps.c udpc.c \
	inet4_strtoip.c inet4_iptostrx.c \
	inet4_strtoipnm.c inet4_ipnmtostrx.c \
	inet4_nmtopx.c \
	ether_aton.c ether_ntoa.c \
	dns.c tcpc.c tcps.c
OUTS = $(SRCS:.c=.x)

CC = @CC@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/xp/bas -L@abs_top_builddir@/xp/net 
LIBS = @LIBS@ -lxpnet -lxpbas

all: $(OUTS)

clean:
	rm -rf $(OUTS) *.o

.SUFFIXES: .c .x
.c.x:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
